package com.longxi.tianjintianbao.ui.activity.main;

import android.widget.TextView;

import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.main.AboutAtPresenter;
import com.longxi.tianjintianbao.ui.view.main.IAboutAtView;

import butterknife.BindView;

/**
 * Created by cxw on 2018/2/15.
 */

public class AboutActivity extends BaseActivity<IAboutAtView, AboutAtPresenter> implements IAboutAtView {
    @BindView(R.id.tvVersion)
    TextView mTvVersion;
    @BindView(R.id.tvUpdateContent)
    TextView mTvUpdateContent;

    @Override
    public void initData() {
        super.initData();
//        mPresenter.startAsyncTask();//内存泄漏测试
        setTitle("关于我们");
        setTvLeft("返回");
        mPresenter.setVersion();
        mPresenter.check();
    }

    @Override
    public void initListener() {
        super.initListener();

    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_about;
    }

    @Override
    protected AboutAtPresenter createPresenter() {
        return new AboutAtPresenter(this);
    }

    @Override
    public TextView getTvVersion() {
        return mTvVersion;
    }

    @Override
    public TextView getTvUpdateContent() {
        return mTvUpdateContent;
    }
}
